package com.voyage.generator.service;

import com.voyage.common.constant.ResponseMO;
import com.voyage.generator.model.ColumnInfo;
import com.voyage.generator.model.PrincipleMO;

import java.util.List;

/**
 *@Author: kangb on 2021/10/8 21:56
 *@param:
 *@return:
 *@Description:
 */
public interface GeneratorService {

    /**
     * 同步表的元数据信息
     * @return
     */
    boolean async();


    /**
     * 通过表名称获取字段信息
     * @param tableName
     * @return
     */
    List<ColumnInfo> list(String tableName);

    /**
     * 代码生成
     * @param principleMO
     * @return
     */
    boolean execute(PrincipleMO principleMO);


}
